package com.szzz.gateway.resource.v1;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

import java.util.HashMap;
import java.util.Map;

/**
 * 认证控制器
 *
 * @author ZhangYin
 *
 */
@RestController
@RequestMapping("auth")
public class AuthResource {

    @PostMapping("login")
    public Mono<Map<String, String>> login() {
        Map<String, String> result = new HashMap<>(1);
        result.put("result", "login");
        return Mono.just(result);
    }

    @PostMapping("logout")
    public Mono<Map<String, String>> logout() {
        Map<String, String> result = new HashMap<>(1);
        result.put("result", "logout");
        return Mono.just(result);
    }

}
